#include <stdio.h>
#include <string.h>
int main()
{
//	char arr1[] = "abcdef";
//	char arr2[] = "ghi";
//	char *p = strncpy(arr1, arr2, 3);
//	printf("%s", p);

	char arr1[] = "abcdef";
	char arr2[] = "ghi";
	char *p = strncpy(arr1, arr2, 6);
	printf("%s", p);
	return 0;
}


